package com.ncmmall.domain.business.setting;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 * @author likaikai
 * @description 系统设置
 * @date 2019-07-06 13:14
 */

@Entity
@Table(name = "mall_system_setting")
@Access(AccessType.FIELD)
public class SystemSetting {

    public static final int INVOICE = 6;
    public static final int MEMBER_PROTOCOL = 7;
    public static final int MERCHANT_ENTER_PROTOCOL = 8;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 发票抬头
     */
    private String invoiceTitle;

    /**
     * 税号
     */
    private String invoiceNumber;

    /**
     * 开票地址
     */
    private String invoiceAddress;

    /**
     * 商家提现代扣税费比例
     */
    private double invoiceScale;

    /**
     * 供应商提现代扣税费比例
     */
    private double supplierInvoiceScale;

    /**
     * 用户注册协议
     */
    @Lob
    private String registerProtocol;

    /**
     * 商家入驻协议
     */
    @Lob
    private String merchantEnterProtocol;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInvoiceTitle() {
        return invoiceTitle;
    }

    public void setInvoiceTitle(String invoiceTitle) {
        this.invoiceTitle = invoiceTitle;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public String getInvoiceAddress() {
        return invoiceAddress;
    }

    public void setInvoiceAddress(String invoiceAddress) {
        this.invoiceAddress = invoiceAddress;
    }

    public double getInvoiceScale() {
        return invoiceScale;
    }

    public void setInvoiceScale(double invoiceScale) {
        this.invoiceScale = invoiceScale;
    }

    public static int getINVOICE() {
        return INVOICE;
    }

    public String getRegisterProtocol() {
        return registerProtocol;
    }

    public void setRegisterProtocol(String registerProtocol) {
        this.registerProtocol = registerProtocol;
    }

    public String getMerchantEnterProtocol() {
        return merchantEnterProtocol;
    }

    public void setMerchantEnterProtocol(String merchantEnterProtocol) {
        this.merchantEnterProtocol = merchantEnterProtocol;
    }

    public static int getMemberProtocol() {
        return MEMBER_PROTOCOL;
    }

    public double getSupplierInvoiceScale() {
        return supplierInvoiceScale;
    }

    public void setSupplierInvoiceScale(double supplierInvoiceScale) {
        this.supplierInvoiceScale = supplierInvoiceScale;
    }
}
